#pragma once

#include "dynamictreewidgetitembase.h"
#include <QStringList>

class QComboBox;

namespace PublicGui
{
	class DynamicComboBox:public DynamicTreeWidgetItemBase
	{
		Q_OBJECT
	public:
		DynamicComboBox(const QString& mtext = "");
		~DynamicComboBox();
		virtual void setItemData(CoreBase::ActorBase* actorptr,const QString& tag);
		virtual QVariant getItemData();
		virtual void setLabelTextList(QStringList mtext);
	protected:
		virtual void initializationUi();
		virtual void emitValueChanged();
		QComboBox*						_comboBoxL;
		QStringList						_itemsList;
		QString							_oldValue;
	private slots:
		void slotValueChanged(int);
protected slots:
		virtual void slotFocusChanged(QWidget*,QWidget*);
	};
}